<template>
  <div class="holy-grail">
    <!-- 头部区域 -->
    <Head/>

    <!-- 内容容器 -->
    <div class="hg-container">
      <!-- 左侧边栏 -->
    <Left/>

      <!-- 中间主内容区 -->
      <Main/>

    </div>

    <!-- 底部区域 -->
    <Foot/>
  </div>
</template>

<script>

import Head from "@/Layout/Head.vue";
import Left from "@/Layout/Left.vue";
import Main from "@/Layout/Main.vue";
import Right from "@/Layout/Right.vue";
import Foot from "@/Layout/Foot.vue";

export default {
  name: 'HolyGrailLayout',
  components: {Foot, Right, Main, Left, Head},
  data() {
    return {
      // 可以在这里定义数据
    }
  }
}

</script>

<style scoped>
/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.holy-grail {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: #333;
  background: #f8f9fa;
}

/* 头部样式 */


/* 内容容器样式 */
.hg-container {
  display: flex;
  flex: 1;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* 主内容区样式 */


/* 侧边栏样式 */


/* 底部样式 */


/* 响应式处理 */
@media (max-width: 992px) {
  .hg-container {
    flex-wrap: wrap;
  }

  .hg-left, .hg-right {
    width: 100%;
    padding: 0 20px 20px;
    order: 3;
  }

  .hg-main {
    padding: 0 20px 20px;
    width: 100%;
  }

  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav li {
    margin: 5px 10px;
  }
}

@media (max-width: 768px) {
  .hg-container {
    display: block;
  }

  .hg-left, .hg-right {
    margin-bottom: 20px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}
</style>